package com.vehicle.util;

import com.vehicle.realm.VehiclesRealm;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.mgt.RealmSecurityManager;
import org.apache.shiro.realm.Realm;


public class ReamlUtil {
    public static void clearCache(){
        RealmSecurityManager rsm = (RealmSecurityManager)SecurityUtils.getSecurityManager();
        VehiclesRealm realm = (VehiclesRealm)rsm.getRealms().iterator().next();
        realm.clearAuthz();

    }
}
